<nav class="navbar-default navbar-static-side" role="navigation">
	<div class="nav-close"><i class="fa fa-times-circle"></i>
	</div>
	<div class="sidebar-collapse">
		<ul class="nav" id="side-menu">
			<li class="nav-header">
				<div class="dropdown profile-element">
					<span><img alt="image" class="img-circle" src="{:config('xhadmin.site_logo')}" width="64px"
							height="64px" /></span>

					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<span class="clear">
							<span class="block m-t-xs"><strong class="font-bold">{:session('admin.username')}
								</strong></span>

						</span>
					</a>
					<ul class="dropdown-menu animated fadeInRight m-t-xs">
						<li><a href="{:url('admin/login/out')}?id={:session('admin.userid')}">安全退出</a>
						</li>
					</ul>
				</div>
				<div class="logo-element">xhadmin
				</div>
			</li>

			{volist name='menus' id='pmenu'}
			{empty name='pmenu.sub'}
			{if condition ="in_array($pmenu.access_url,session('admin.nodes')) || session('admin.role') eq 1 "}
			<li>
				<a class="J_menuItem" href="{$pmenu.url}" name="tabMenuItem">
					<i class="{$pmenu.icon}"></i>
					<span class="nav-label">{$pmenu.title}</span>
				</a>
			</li>
			{/if}
			{else}
			{if condition ="in_array($pmenu.access_url,session('admin.nodes')) || session('admin.role') eq 1 "}
			<li>
				<a href="#">
					<i class="fa {$pmenu.icon}"></i>
					<span class="nav-label">{$pmenu.title}</span>
					<span class="fa arrow"></span>
				</a>
				<ul class="nav nav-second-level">
					{volist name='pmenu.sub' id='menu'}
					{empty name='menu.sub'}
					{if condition ="in_array($menu.access_url,session('admin.nodes')) || session('admin.role') eq 1 "}
					<li>
						<a class="J_menuItem" href="{$menu.url}" name="tabMenuItem">
							<i class="{$menu.icon} nav-icon"></i>
							<span class="nav-label">{$menu.title}</span>
						</a>
					</li>
					{/if}
					{else/}
					{if condition ="in_array($menu.access_url,session('admin.nodes')) || session('admin.role') eq 1 "}
					<li>
						<a class="J_menuItem">{$menu.title} <span class="fa arrow"></span>
							<i class="{$menu.icon} nav-icon"></i>
						</a>
						<ul class="nav nav-third-level" style="padding-left:20px;">
							{volist name='menu.sub' id='thirdmenu'}
							{if condition ="in_array($thirdmenu.access_url,session('admin.nodes')) ||
							session('admin.role') eq 1 "}
							<li><a class="J_menuItem">{$thirdmenu.title}<i
										class="{$thirdmenu.icon} nav-icon"></i></a>
								<ul class="nav nav-third-level" style="padding-left:20px;">
									{volist name='thirdmenu.sub' id='fourthmenu'}
											{if condition ="in_array($fourthmenu.access_url,session('admin.nodes')) ||
									session('admin.role') eq 1 "}
									<li><a class="J_menuItem" href="{$fourthmenu.url}">{$fourthmenu.title}<i
										class="{$fourthmenu.icon} nav-icon"></i></a></li>
									{/if}
									{/volist}
								</ul>
							</li>
							{/if}
							{/volist}

						</ul>
					</li>
					{/if}
					{/empty}
					{/volist}
				</ul>
			</li>
			{/if}
			{/empty}
			{/volist}


		</ul>
	</div>
</nav>